/**
 * 
 */
package mediasManagement;

import java.util.ArrayList;
import java.util.Calendar;

import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;

import exceptions.BadParametersException;
import exceptions.MediaExistsException;

/** 
 * @author virgil
 */
@Entity
@DiscriminatorValue("Book")
public class Book extends Media {

	
	

		
		/**
		 * create a book with its isbn and add one default exemplary
		 * @throws MediaExistsException 
		 * @throws BadParametersException 
		 */
		public Book(String title, ArrayList<String> authors,ArrayList<String> categories, Calendar editionDate,
				String isbn,FabricCategory fabric) throws BadParametersException, MediaExistsException{
			super(title,authors,categories,editionDate,isbn,"Book",fabric);

		}
		
		/**
		 *create a book with its isbn and add numberExemplaries exemplaries
		 * @param title
		 * @param authors
		 * @param categories
		 * @param editionDate
		 * @param isbn
		 * @param numberExemplaries
		 * @param fabric
		 * @throws BadParametersException
		 * @throws MediaExistsException
		 */
		public Book(String title, ArrayList<String> authors,ArrayList<String> categories, Calendar editionDate,
				String isbn,int numberExemplaries,FabricCategory fabric) throws BadParametersException, MediaExistsException{
			super(title,authors,categories,editionDate,isbn,"Book",numberExemplaries,fabric);

		}
		
	public Book(){
		
	}
		
}
